package com.example.njupt.uis.main;

import android.widget.TextView;

import com.example.njupt.R;
import com.example.njupt.base.fragment.BaseFragment;
import com.example.njupt.constant.ARouteConstance;
import com.example.njupt.helper.ARouteUtils;
import com.example.njupt.okhttp.retrofit.BaseResult;

import butterknife.BindView;

/**
 * Author:      mwang
 * Create Date: Created in 2021/5/25 17:48
 * Update Date:
 * Modified By:
 * Description:
 */
public class MainFragment extends BaseFragment<MainPresenter> {

    @BindView(R.id.tv_main)
    TextView tvMain;

    @Override
    public void onLazyLoad() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_main;
    }

    @Override
    protected void initView() {
        tvMain.setOnClickListener(v -> ARouteUtils.ARouteWithUrl(ARouteConstance.ACTIVITY_FLUTTER));
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected MainPresenter createPresenter() {
        return null;
    }

    @Override
    public void showError(String msg) {

    }

    @Override
    public void onErrorCode(BaseResult result) {

    }
}
